#!/usr/bin/env python
#-*- coding: utf-8 -*-
#
# BSD License
# Copyright (c) 2011, Wang Qiang
# All rights reserved.

"""
Error Flow
"""

class ErrorProcessor(object):
    """
    Process error when parse news html.
    """
    def __init__(self, organize):
        super(ErrorProcessor, self).__init__()
        self.organize = organize
        
    def getPageError(self, error):
        """
        Error in getPage
        @param error: error in getPage
        """
        log.err("Error in get news html:" + \
                self.organize + ":" + str(error))
     
    def parsePageError(self, error):
        """
        Error in parse Page
        @param error: error in parse Page
        """
        log.err("Error in parse news html:" + \
                self.organize + ":" + str(error))
